package xmath

import (
	"xmath/comp"
)

func XDiv(a, b int)(r, m int){
	r = a / b
	m = a % b
	return
}

func XComp(a, b, d int)(int){
	xa, xb := comp.Xrm{a, d}, comp.Xrm{b, d}
	return comp.Compare(&xa, &xb)
}